﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    class emp
    {
        public  int Id { get; set; }
        public  string Name { get; set; }
        public  string Sex { get; set; }
        public  string Departinfo { get; set; }

        public emp() {
            Console.WriteLine("我的工号是{0}，名叫{1}，性别为{2}，来自{3}", this.Id, this.Name, this.Sex, this.Departinfo);
        }

        public emp(int id,string name,string sex,string departinfo) {

            this.Id = id;
            this.Name = name;
            this.Sex = sex;
            this.Departinfo = departinfo;
        }
        public void dy() {


            Console.WriteLine("我的工号是{0}，名叫{1}，性别为{2}，来自{3}",this .Id ,this .Name ,this .Sex,this .Departinfo);
            Console.ReadKey();
        }
        
    }

    
}
